%h1 New Subject
 
= form_for @subject do |f|
  %p
    = f.label :name
    = f.text_field :name
  %p
    = f.label :credit_hours
    = f.text_field :credit_hours
  %p
    = f.submit 'Save'
 
= link_to 'Back', subjects_path